const express = require('express')
const app = express()

app.use(express.json())
//处理json数据

app.use(express.urlencoded())
//处理表单数据

app.post('/form',(req,res)=>{
    console.log(req.body);
    res.send(req.body)
})

app.get('/',(req,res)=>{
    res.send({
        msg: 'get msg'
    })
})

app.listen(3000,()=>{
    console.log('3000 running')
})